*** Political Behavior Replication Code ***********
**********5-23-25**********************

*** Variable Coding and direction will be provided in the Carlos codebook pdf. 

*** The Appendix constaints the summaury statics of the variable. 

*** Creating the Anti-immgrant Views Variable 

kr20 revimmgwall immgwithhold immgreduce revimmggrant immgpatrols revimmgdreamer 

*KR20 coefficient is 0.5868

* a score of above . 5 is usually considered reasonable.

egen immigrationscale = rowmean(revimmgwall immgwithhold immgreduce revimmggrant immgpatrols revimmgdreamer)

*** Appendix Table 3 Coefficients for Figure 1 in main text **** 
logit trumpvote female age college rightdirection i.partyid interest ideo usborn income Catholic protestant mexican puertorican cuban abortionillegal immigrationscale covidimpact spanish menleaders faceddis swing i.knowundoc [pw= weight] if registered==1


*** Appendix Table 4 Coefficients  **** 
logit trumpvote female age college rightdirection i.partyid interest ideo usborn income Catholic protestant mexican puertorican cuban abortionillegal immigrationscale covidimpact spanish menleaders faceddis swing i.knowundoc [pw= weight]


*** Appendix Table 5 Coefficients for Figure 2 in main text **** 
mlogit pvote2 i.treatments i.pvote, base(3)


*** Appendix Table 6 Coefficients **** 
mlogit pvote2 i.treatments i.pvote registered, base(3)


*** Appendix Table 7 Coefficients **** 

**with independents Trump 
mlogit pvote2 i.treatments i.pvote, base(3)

**without independents Trump 
mlogit pvote2 i.treatments i.pvote if partyid !=1, base(3) 


*** Appendix Table 8 Coefficients **** 

**with independents Biden 
mlogit pvote2 i.treatments i.pvote, base(3)

**without independents Biden 
mlogit pvote2 i.treatments i.pvote if partyid !=1, base(3) 


*** Appendix Table 9 Coefficients for Figure 3 in main text **** 
mlogit pvote2 i.treatments i.pvote if partyid ==2, base(4) 


*** Appendix Table 10 Coefficients for Figure 4 in main text **** 
mlogit pvote2 i.treatments i.pvote if partyid ==1, base(3) 


*** Appendix Table 11 Coefficients for Figure 5 in main text **** 
mlogit pvote2 i.treatments i.pvote if partyid ==0, base(3) 


*** Appendix Table 12 Coefficients for Figure 6 in main text **** 
mlogit pvote2 i.treatments i.pvote if spanish ==0, base(3) 


*** Appendix Table 13 Coefficients for Figure 7 in main text **** 
mlogit pvote2 i.treatments i.pvote if interest <=2, base(3) 


*** Appendix Table 14 Coefficients for Figure 8 in main text **** 
mlogit pvote2 i.treatments i.pvote if faceddis >=2, base(3) 

*** Appendix Table 15 Coefficients for Figure 9(left) in main text **** 
reg trumpfeeling2 i.treatments trumpfeeling

*** Appendix Table 16 Coefficients for Figure 9(right) in main text **** 
reg trumpfeeling2 i.treatments trumpfeeling
reg trumpfeeling2 i.treatments trumpfeeling if partyid==2












